<?php
// 根据商品id查询商品(所有信息)
$id = $_REQUEST["id"];
require_once("DButil.php");
$sql = "select p_id,p_name,p_info,p_price,p_unit,p_image_url from t_product where p_id = '$id'";
$result = queryOne(getConn(), $sql);
header("Content-Type:application/json;charset=UTF-8");
echo json_encode($result);
?>